export let columns = {
    studentsColumns: [
        {
            title: "学院",
            dataIndex: "college",
            sorter: (a, b) => a.college.length - b.college.length,
        },
        {
            title: "专业",
            dataIndex: "major"
        },
        {
            title: "班级",
            dataIndex: "class"
        },
        {
            title: "年级",
            dataIndex: "grade"
        },
        {
            title: "姓名",
            dataIndex: "name"
        },
        {
            title: "学号",
            dataIndex: "studentNumber",
            sorter: (a, b) => a.studentNumber - b.studentNumber,
        },
        {
            title: "性别",
            dataIndex: "gender",
            filters: [
                {
                    text: '男',
                    value: '男',
                },
                {
                    text: '女',
                    value: '女',
                },
            ],
            onFilter: (value, record) => record.gender.indexOf(value) === 0
        },
        {
            title: "操作",
            key: "action",
            scopedSlots: {customRender: 'action'}
        }
    ],
}